﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBookStore.Payments
{
    public class CheckPayment : Payment
    {


        System.Drawing.Image _img;

        /// <summary>
        /// Checks scanned image.
        /// </summary>
        public System.Drawing.Image CheckImage
        {
            get { return _img; }
            set { _img = value; }
        }


        public CheckPayment() : base() { }

        /// <summary>
        /// 
        /// </summary>
        public CheckPayment(System.Drawing.Image Image)
            : base()
        {
            _img = Image;
        }

        /// <summary>
        /// Copy constructor.
        /// </summary>
        /// <param name="chkP"></param>
        public CheckPayment(CheckPayment chkP)
            :base(chkP)
        {
            this._img = chkP.CheckImage;
        }

        #region IPaymentAction Members

        public override bool Charge()
        {
            //return Utils.RandomUtil.RandomBool();
            return true;
        }

        public override bool Refund()
        {
            //return Utils.RandomUtil.RandomBool();
            return true;
        }

        #endregion
    }
}
